package com.example.administrator.testpersionn;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.example.administrator.out1.HomePageTestActivity;
import com.example.administrator.out1.ListItemPopActivity;
import com.example.administrator.out1.LocationActivity;
import com.example.administrator.out1.MontionTestActivity;
import com.example.administrator.out1.SqliteActivity;
import com.example.administrator.out1.TabarColorActivity;
import com.example.administrator.out1.TestSpinnerActivity;
import com.example.administrator.out1.ViewTestActivity;
import com.example.administrator.out1.mvp.TestMvpActivity;
import com.example.administrator.out1.wxapi.JrecyclerViewActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {
    boolean activityUtils = true;
    @BindView(R.id.loginText1)
    TextView loginText1;
    @BindView(R.id.loginText2)
    TextView loginText2;
    @BindView(R.id.loginText3)
    TextView loginText3;
    @BindView(R.id.loginText4)
    TextView loginText4;
    @BindView(R.id.loginText5)
    TextView loginText5;
    @BindView(R.id.loginText6)
    TextView loginText6;
    @BindView(R.id.loginText7)
    TextView loginText7;
    @BindView(R.id.loginText8)
    TextView loginText8;
    @BindView(R.id.loginText9)
    TextView loginText9;
    @BindView(R.id.loginText10)
    TextView loginText10;
    @BindView(R.id.loginText11)
    TextView loginText11;
    @BindView(R.id.loginText12)
    TextView loginText12;
    @BindView(R.id.loginText13)
    TextView loginText13;
    @BindView(R.id.loginText)
    TextView loginText;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
        activityUtils = getIntent().getBooleanExtra("isTrue", false);


    }


    @OnClick({R.id.loginText,R.id.loginText1, R.id.loginText2, R.id.loginText3, R.id.loginText4, R.id.loginText5, R.id.loginText6, R.id.loginText7, R.id.loginText8, R.id.loginText9, R.id.loginText10, R.id.loginText11, R.id.loginText12, R.id.loginText13})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.loginText:  startActivity(new Intent(com.example.administrator.out1.MainActivity.this, HomePageTestActivity.class));
                break;
            case R.id.loginText1:
                startActivity(new Intent(com.example.administrator.out1.MainActivity.this, ListItemPopActivity.class));
                break;
            case R.id.loginText2:
                startActivity(new Intent(com.example.administrator.out1.MainActivity.this, LocationActivity.class));
                break;
            case R.id.loginText3:
                startActivity(new Intent(com.example.administrator.out1.MainActivity.this, SqliteActivity.class));
                break;
            case R.id.loginText4:
                startActivity(new Intent(com.example.administrator.out1.MainActivity.this, TabarColorActivity.class));
                break;
            case R.id.loginText5:
                startActivity(new Intent(com.example.administrator.out1.MainActivity.this, ViewTestActivity.class));
                break;
            case R.id.loginText6:
                startActivity(new Intent(com.example.administrator.out1.MainActivity.this, MontionTestActivity.class));
                break;
            case R.id.loginText7:
                startActivity(new Intent(com.example.administrator.out1.MainActivity.this, JrecyclerViewActivity.class));
                break;
            case R.id.loginText8:
                startActivity(new Intent(com.example.administrator.out1.MainActivity.this, TestMvpActivity.class));
                break;
            case R.id.loginText9:
                startActivity(new Intent(com.example.administrator.out1.MainActivity.this, TestSpinnerActivity.class));
                break;
            case R.id.loginText10:
                break;
            case R.id.loginText11:
                break;
            case R.id.loginText12:
                break;
            case R.id.loginText13:
                break;
        }
    }

}
